<template>
    <el-container>
        <el-aside width="200px">
            <el-menu default-active="1" :router="true" background-color="#334157" text-color="#fff" active-text-color="#ffd04b">
                <el-sub-menu index="1">
                    <template #title>
                        <el-icon>
                            <location/>
                        </el-icon>
                        <h3>系统管理</h3>
                    </template>
                    <el-menu-item index="/system/user">用户管理</el-menu-item>
                    <el-menu-item index="/system/menu">菜单管理</el-menu-item>
                    <el-menu-item index="/system/role">角色管理</el-menu-item>
                </el-sub-menu>

            </el-menu>
        </el-aside>
        <el-container>
            <el-header>
                <el-row>
                    <el-col :span="16"></el-col>
                    <el-col :span="4"><el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" style="margin-top: 15px"/></el-col>
                    <el-col :span="4">当前用户: admin</el-col>
                </el-row>
            </el-header>
            <el-main>
                <router-view/>
            </el-main>
        </el-container>
    </el-container>
</template>

<script lang="ts" setup>
    import {
        Document,
        Menu as IconMenu,
        Location,
        Setting,
    } from '@element-plus/icons-vue'

</script>

<style scoped>
    .el-header {
        background-color: #334157;
        color: #fff;
        text-align: right;
        line-height: 60px;
    }

    .el-aside {
        background-color: #334157;
        text-align: center;
        padding-top: 50px;
    }

    .el-main {
        background-color: #E9EEF3;
        color: #333;
        text-align: center;
        border-left: 2px solid #333;
    }

    .el-container {
        height: 100%;
    }

</style>
